package pl.egraveyard.controller;

import java.util.HashMap;
import java.util.Map;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.springframework.validation.BindException;
import org.springframework.web.servlet.ModelAndView;
import org.springframework.web.servlet.mvc.AbstractCommandController;

import pl.egraveyard.command.RegistrationCompleteCommand;


/**
 * Kontroller dla strony wyswietlajace informacje o wyslanym mail rejestracyjnym
 * @author gunos
 *
 */
public class RegistrationCompleteController extends AbstractCommandController{
	private static final String FTL = "/registration_complete";
	
	/**
	 * Domyslny konstruktor
	 */
	public RegistrationCompleteController(){
		setCommandClass(RegistrationCompleteCommand.class);
	}
	
	/**
	 * {@inheritDoc}
	 */
	@Override
	protected ModelAndView handle(HttpServletRequest request,
			HttpServletResponse response, Object command, BindException errors)
			throws Exception {
		Map<String, Object> params = new HashMap<String, Object>();
		return new ModelAndView(FTL, params);
	}

}
